﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

// 快速启动协程
public class QuickCoroutine : Singleton<QuickCoroutine>
{
    QuickCoroutineMono script;

    public QuickCoroutine()
    {
        var obj = new GameObject("QuickCoroutine");
        GameObject.DontDestroyOnLoad(obj);
        script = obj.AddComponent<QuickCoroutineMono>();
    }

    public Coroutine StartCoroutine(IEnumerator routine)
    {
        return script.StartCoroutine(routine);
    }
}
